package com.czd.support.service;

import java.util.List;

import org.springframework.stereotype.Service;

import com.czd.base.service.BaseService;
import com.czd.support.model.ZcncNews;

/**
 * @Description 中财内参新闻业务逻辑类
 * @author caoren
 * @Date 2015/05/19
 */
@Service
public class ZcncNewsService extends BaseService<ZcncNews>{
	public boolean insert(ZcncNews news){
		return this.insert(sqlId("insert"),news);
	}
	
	public ZcncNews findById(int id){
		return this.selectOne(sqlId("findById"), id);
	}
	
	public boolean update(ZcncNews news){
		return this.update(sqlId("update"), news);
	}
	
	public boolean delete(int id){
		return this.delete(sqlId("delete"), id);
	}
	
	public List<ZcncNews> queryZcncNews(){
		return this.selectList(sqlId("queryZcncNews"));
	}
}
